package Lesson17.Car;

public class SportCar extends Car
{
	protected boolean isCabriolet;
	private double price;
	
	SportCar()
	{
		super(330);
	}
	
	protected void switchTurbo()
	{
		System.out.println("Turbo on!");
		super.accelerate(currentSpeed*2);
	}
	
	@Override
	protected void accelerate(double speed)
	{
		super.accelerate(speed);
		if (currentSpeed >= 150.0)
			switchTurbo();
		System.out.println("Sport car is accelerating!");
	}
	
}
